package com.yanjr.modules.ad.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.yanjr.common.persistence.Page;
import com.yanjr.modules.ad.entity.Advertisement;

@Service
public interface AdvertisementService {
	
	Advertisement get(String id);
	
	void save(Advertisement advertisement);
	
	void delete(String id);
	
	Page<Advertisement> find(Page<Advertisement> page, Advertisement advertisement);

	Page<Advertisement> find(Page<Advertisement> page, String id, Advertisement advertisement);

	List<Advertisement> findAllEnable(String spaceId);
	
	void enableById(String id);
	
	void disenableById(String id);
	
}
